'use strict';

/**
 * 代理
 */
var Router = require('koa-router');
var __pathPrefix = '/';
var router = new Router({prefix: __pathPrefix});
module.exports = router.routes();

var proxyMgr = require('../proxy_mgr.js');
var proxy = require('koa-proxy');

/**
 * static job
 */
router.all('**', function*(next) {
  console.log('%s %s', this.method, this.url);
  var start = new Date();
  yield next;
  var ms = new Date() - start;
  console.log('%s %s - %s', this.method, this.url, ms);
  //yield next;
});
